package xin.yangshuai.jackson01.entity;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * TestJackson
 *
 * @author shuai
 * @date 2021/11/10
 */
public class TestJackson {

    private String DD;

    private String alpha;

    private String beta;

    public TestJackson() {
    }

    public TestJackson(String alpha, String beta, String DD) {
        this.alpha = alpha;
        this.beta = beta;
        this.DD = DD;
    }

    public String getBeta() {
        this.beta = "beta1";
        return "beta2";
    }

    public void setBeta(String beta) {
        this.beta = "beta3";
    }

    public String getAlpha() {
        this.alpha = "alpha1";
        return "alpha2";
    }

    public void setAlpha(String alpha) {
        this.alpha = "alpha3";
    }

    @JsonProperty("DD")
    public String getDD() {
        this.DD = "DD1";
        return "DD2";
    }

    public void setDD(String DD) {
        this.DD = "DD3";
    }

    @Override
    public String toString() {
        return "TestJackson{" +
                "DD='" + DD + '\'' +
                ", alpha='" + alpha + '\'' +
                ", beta='" + beta + '\'' +
                '}';
    }
}


